#主动技能【动力阀门】

effect give @s absorption 5 0 true

execute if score @s skPlayer matches 1.. run scoreboard players add @s skPlayer 1
execute if score @s skPlayer matches -1 run scoreboard players set @s skPlayer 1

scoreboard players remove @s[scores={skFlyDistance=1..20000}] skFlyDistance 3000

item replace entity @s weapon.offhand with redstone_torch 1

execute if score @s skCDPearl matches 0 run item replace entity @s weapon.offhand with minecraft:firework_rocket{display: {Name: '[{"text":"技能：动力阀门","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]', Lore: ['{"text":"主动技能【动力阀门】","color":"dark_purple","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}', '{"text":"使用后减少3000“负荷”","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}', '{"text":"增加1层“过载” 获得伤害吸收I 5s","color":"red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}', '{"text":"MAX 2  冷却时间 8s","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']}} 1
execute if score @s skCDPearl matches 0 run scoreboard players set @s skCDPearl 8